var AnimMgr = {}
var animList = []
var gfunc = null
//shift()
AnimMgr.pushAnim = function(anim){
    animList.push(anim)
}

AnimMgr.doAnim = function(){
    var anim = animList.shift()
    if(anim){
        anim.execute()
    }
}

AnimMgr.Next = function(){
    AnimMgr.doAnim()
}

module.exports = AnimMgr